<?php
class Rola_Controller extends Controller
{
	public function __construct()
	{
		parent::__construct();
    	$this->session=new Session();
	}
        public function ustaw()
        {
            $this['rola']=$this->session->get('operator');
            echo $this->render('gantt/gantt.html');
        }
        public function zmien_role_uzytkownika()
        {
            $this->session->set('operator',$_POST['rola']);
            echo 'ok';
        }
        public function set($parametr)
        {
            $this->session->set('operator',$parametr);
        }
        public function set_rola()
        {
            //$this->session->set('zalogowany',330);
            echo $this->session->get('zalogowany');
        }

}